const obj = {
  state: {
    userid: "",
	usertype: ""
  },

  mutations: {
    SET_USERID: (state, userid) => {
      state.userid = userid
    },
    SET_USERTYPE: (state, usertype) => {
      state.usertype = usertype
    }
  },

  actions: {
    // 登录
    Login({ commit }, obj) {
		console.log("usertype score====",usertype);
      commit('SET_USERID',obj.userid )
      commit('SET_USERTYPE',obj.usertype )
    }
  }
}

export default obj